<include file="public@header" />
</head>
<body> 
		
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:url('Work/workplaceIndex')}">作业场所</a></li>
			<li><a href="{:url('Work/workplaceAdd')}">添加作业场所</a></li>
		</ul>
		<form class="well form-inline margin-top-20" method="get" action="{:url('Work/workplaceIndex')}">
            作业场所名称:
            <input type="text" class="form-control" name="workplaceName" style="width: 180px;" placeholder="作业场所名称">
            <input type="submit" class="btn btn-primary" value="搜索" />
            <a class="btn btn-danger" href="{:url('Work/workplaceIndex')}">清空</a>
        </form>
		<form action="" method="post" class="margin-top-20">
			<table class="table table-hover table-bordered">
				<thead>
					<tr>
						<th align="left">作业场所</th>
						<th align="left">易发生事故类型</th>
						<th align="left">管控单位</th>
						<th align="left">责任人</th>
						<th width="160">{:lang('ACTIONS')}</th>
					</tr>
				</thead>
				<tbody>
					<foreach name="data" item="vo">
					<tr>
						<td>{$vo.workplaceName}</td>
						<td>{$vo.accidentType}</td>
						<td>{$vo.controlUnit}</td>
						<td>{$vo.controlPerson}</td>
						<td>
							<a class="btn btn-xs btn-primary" href="{:url('Work/workplaceEdit',array('workplaceID'=>$vo['workplaceID']))}">{:lang('EDIT')}</a>
							<!--js-ajax-delete-->
							<a class="btn btn-xs btn-danger js-ajax-delete"
							 href="{:url('Work/workplaceDelete',array('workplaceID'=>$vo['workplaceID']))}" data-msg="确定删除它吗？">{:lang('DELETE')}</a>
						</td>
					</tr>
					</foreach>
				</tbody>
			</table>
		</form>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>